import instance from './axiosInstance'
// 登录
export function reqLogin(username, password) {
  return instance.post('/login', { username, password })
}
// 验证token
export function reqVerifyToken() {
  const authorization = localStorage.getItem('authorization')
  return instance.post('/verifyToken', { authorization })
}

// 退出
export function reqlogout(id) {
  return instance.post('/logout', { id })
}
